# coding=utf-8

# GDP 原始数据
GDP = [3319.38, 3804.01, 3873.51, 4652.03, 3899.01, 4445.39, 4639.68, 5654.28, 4601.97, 5286.78, 5413.17, 6185.00, 4632.13, 5411.41, 5784.54, 7004.35, 5363.31, 6398.20, 7003.63, 8461.61, 6311.24, 8342.40, 7973.77, 9372.69, 6724.64, 9065.77, 8424.42, 10391.47, 7261.54, 9692.38, 9241.11, 11373.47, 7768.46, 10209.75, 9843.98, 12331.31, 8342.38, 10938.31, 10403.54, 13202.26, 9356.20, 11406.13, 11472.00, 14250.65, 10551.93, 12831.28, 13574.82, 14810.23, 12500.90, 14024.96, 14797.52, 16679.46, 13721.95, 15264.34, 15870.62, 17494.83, 13113.99, 15972.64, 16739.29, 18787.42, 16346.76, 18209.68, 18346.64, 20663.13, 17886.00, 18336.00]

# 一阶差分序列
GDP_diff = list()
for i in range(len(GDP) - 1):
    GDP_diff.append(GDP[i+1] - GDP[i])


print(GDP_diff)
